package com.info.zhiduoduo.repository.entity.commonproblem;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author Trink丶
 * 常见问题实体
 */
@Data
@Accessors(chain = true)
@TableName("zdd_common_problem")
@ToString
public class CommonProblemEntity extends Model<CommonProblemEntity> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 问题类型
     */
    private byte problemType;

    /**
     * 问题描述
     */
    private String problemDescription;

    /**
     * 问题回答
     */
    private String problemRespond;

    /**
     * 逻辑删除
     */
    @TableLogic  //逻辑删除注解
    private byte delete = 0;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
